﻿using System;

namespace Postnuclear.Test.Helpers
  {
  /// <summary>
  /// Test interface for checking weakness of event handlers.
  /// </summary>
  /// <typeparam name="TEventArgs">The type of the event arguments.</typeparam>
  public interface IHandlerProvider<TEventArgs>
    where TEventArgs : EventArgs
    {
    /// <summary>
    /// Handles the specified event.
    /// </summary>
    /// <param name="sender">The sender.</param>
    /// <param name="e">The <typeparamref name="TEventArgs"/> instance containing the event data.</param>
    void Handle(object sender, TEventArgs e);
    }
  }
